package com.milhouz.bomberrokon.sprite;

import com.stickycoding.Rokon.Rokon;
import com.stickycoding.Rokon.Texture;

/**
 * BomberBot sprite
 */
public class BomberBotSprite extends BomberSprite {

	private final int MAX_GOAL_TIME = 2000;

	private int mBotGoalX = -1;
	private int mBotGoalY = -1;
	private long mBotGoalTimer;

	public BomberBotSprite(int id, float x, float y, Texture moveTexture) {
		super(id, x, y, moveTexture);
	}

	public int getBotGoalX() {
		return mBotGoalX;
	}

	public void setBotGoalX(int botGoalX) {
		mBotGoalX = botGoalX;
	}

	public int getBotGoalY() {
		return mBotGoalY;
	}

	public void setBotGoalY(int botGoalY) {
		mBotGoalY = botGoalY;
	}

	public boolean isGoalTimerTimeout() {
		if (mBotGoalTimer == 0 || (Rokon.getTime() - mBotGoalTimer) >= MAX_GOAL_TIME) {
			return true;
		}
		return false;
	}

	public void initBotGoalTimer() {
		mBotGoalTimer = Rokon.getTime();
	}

}
